package com.bawei.library_base.room.address;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;

import java.util.List;

/**
 * @author : zhiyu
 * @date : 2021/12/22
 * @content :
 */
@Dao
public interface AddressDao {
    //查询全部
    @Query("select * from address")
    List<Address> getAllAddress();
    //添加
    @Insert
    void insert(Address address);
    //修改
    @Update
    void Update(Address address);
    //删除
    @Delete
    void delete(Address address);


}
